home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1999 October
/
PCWorld_1999-10_cd1.bin
/
Software
/
Servis
/
X-setup
/
_SETUP.1
/
XQ MSDOSSYS 2.xpl
< prev
next >
Wrap
Text File
|
1999-04-05
|
3KB
|
107 lines
"FILE"="Xteq Systems X-Setup Plugin 3.1"
"TYPE"="6"
"COUNT"="5"
"UIPATH"="System\Windows 95/98 Boot Options"
"NAME"="Advanced Options"
"LANGUAGE"="VBScript"
"TEXT 1"="Enable "Boot old MS-DOS version" in menu"
"TEXT 2"="Enable Network"
"TEXT 3"="Enable logging"
"TEXT 4"="Load system files at top of 640 K"
"TEXT 5"="Start in "Safe Mode" on next boot"
"DESCRIPTION 1"="Some boot-options for Windows 95."
"AUTHOR"="Xteq Systems"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
"COMMENT 2"="Version 1.1"
"COMMENT 3"=" "
"COMMENT 4"="Thanks to David Goodenough (dpg@ix.netcom.com) for the fix"
"COMMENT 5"=" "
"COMMENT 6"="--#--"
'Declaration of some constants
sF="C:\MSDOS.SYS"
sO="OPTIONS"
'Called when the Plugin is started
Sub Plugin_Initialize
If GetWinVer=1 or GetWinVer=3 then
Call FileSetAttribute(sf,"S-")
Call FileSetAttribute(sf,"R-")
Call FileSetAttribute(sf,"H-")
'Fix #1
'i=IniReadValue(sf,so,"MultiBoot")
i=IniReadValue(sf,so,"BootMulti")
if i=1 then SetUIElement 1,true
i=IniReadValue(sf,so,"Network")
if i=1 then SetUIElement 2,true
i=IniReadValue(sf,so,"DisableLog")
if i=0 or IsEmpty(i) then SetUIElement 3,true
i=IniReadValue(sf,so,"LoadTop")
if i=1 then SetUIElement 4,true
i=IniReadValue(sf,so,"BootFailSafe")
if i=1 then SetUIElement 5,true
else
Disable
end if
End Sub
'Called when the Plugin should validate the Data the user has entered
Sub Plugin_CheckData(ElementIndex)
End Sub
'Called when the Plugin should apply the changes
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
b=GetUIElement(1)
if b=true then
Call IniWriteValue(sf,so,"BootMulti",1)
else
Call IniWriteValue(sf,so,"BootMulti",0)
end if
b=GetUIElement(2)
if b=true then
Call IniWriteValue(sf,so,"Network",1)
else
Call IniWriteValue(sf,so,"Network",0)
end if
b=GetUIElement(3)
if b=true then
Call IniWriteValue(sf,so,"DisableLog",0)
else
Call IniWriteValue(sf,so,"DisableLog",1)
end if
b=GetUIElement(4)
if b=true then
Call IniWriteValue(sf,so,"LoadTop",1)
else
Call IniWriteValue(sf,so,"LoadTop",0)
end if
b=GetUIElement(5)
if b=true then
Call IniWriteValue(sf,so,"BootFailSafe",1)
else
Call IniWriteValue(sf,so,"BootFailSafe",0)
end if
Restart
End Sub
'Called when the Plugin is about to be removed from memory
Sub Plugin_Terminate
Call FileSetAttribute("C:\MSDOS.SYS","S+")
Call FileSetAttribute("C:\MSDOS.SYS","R+")
Call FileSetAttribute("C:\MSDOS.SYS","H+")
End Sub